<%@ Page Language="C#" MasterPageFile="~/Admin/BoardAdmin.Master" AutoEventWireup="true" CodeBehind="ManageUsers.aspx.cs" Inherits="UserInterface.Admin.ManageUsers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h1><%= GetLocalResourceObject("Header") %></h1>
    
    <table class="default-table">
        <tr>
            <th colspan="2"><%= GetLocalResourceObject("SearchUser") %></th>
        </tr>
        <tr>
            <td class="default-data-column default-option-width"><%= GetLocalResourceObject("SearchTerm") %></td>
            <td class="default-data-column"><asp:TextBox ID="SearchTermTextBox" runat="server" /></td>
        </tr>
    </table>
    
    <div class="options">
        <asp:Button ID="SearchButton" Text="<%$ Resources: Search %>" OnClick="SearchButton_Click" runat="server" />
    </div>
    
    <cc:Repeater ID="UsersRepeater" runat="server">
       <HeaderTemplate>
            <table class="default-table">
                <tr>
                    <th class="default-option-width"><%= GetLocalResourceObject("User") %></th>
                    <th><%= GetLocalResourceObject("Options") %></th>
                </tr>
        </HeaderTemplate>
        
        <ItemTemplate>
                <tr>
                    <td class="default-data-column"><%# Eval("Username") %></td>
                    <td class="default-data-column">
                        <a href="?userId=<%# Eval("Id") %>">Activate / Deactivate</a> |
                        <a href="EditUserPermissions.aspx?userId=<%# Eval("Id") %>"><%= GetLocalResourceObject("EditPermissions") %></a>
                    </td>
                </tr>
        </ItemTemplate>
        
        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-data-column"><%# Eval("Username")%></td>
                    <td class="alternate-data-column">
                        <a href="?userId=<%# Eval("Id") %>">Enable / Disable</a> |
                        <a href="EditUserPermissions.aspx?userId=<%# Eval("Id") %>"><%= GetLocalResourceObject("EditPermissions") %></a>
                    </td>
                </tr>
        </AlternatingItemTemplate>
        
        <FooterTemplate>
            </table>
        </FooterTemplate>
        
        <EmptyTemplate>
            Nothing Found
        </EmptyTemplate>
    </cc:Repeater>
</asp:Content>
